package com.imagefake.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * (SysRoleUser)表实体类
 *
 * @author makejava
 * @since 2024-04-23 20:32:02
 */
@SuppressWarnings("serial")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class SysRoleUser extends Model<SysRoleUser> {
//用户编号
    private Integer uid;
//角色编号
    private Integer rid;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.uid+""+this.rid;
    }
}

